import request from '@/utils/request'

export function findAllPlan(param) {
  return request({
    url: '/plan/findAllPlan/' +param,
    method: 'get',
    param
  })
}

export function findBySelect(data) {
  return request({
    url: '/plan/findBySelect/',
    method: 'post',
    data
  })
}

export function findAllDept() {
  return request({
    url: '/dept/findAll/',
    method: 'get',
  })
}

export function uploadDocx(data) {
  return request({
    url: '/plan/upload/',
    method: 'post',
    data
  })
}

export function findApprover(data) {
  return request({
    url: '/plan/findUser/',
    method: 'post',
    data
  })
}

export function submit(data) {
  return request({
    url: '/plan/addPlan/',
    method: 'post',
    data
  })
}

export function findPlanSchedule(data) {
  return request({
    url: '/plan/findPlanSchedule/',
    method: 'post',
    data
  })
}

export function findMyApproveNow(data) {
  return request({
    url: '/plan/findMyApproveNow/',
    method: 'post',
    data
  })
}

export function findMyApproved(data) {
  return request({
    url: '/plan/findMyApproved/',
    method: 'post',
    data
  })
}

export function findPlanDetail(param) {
  return request({
    url: '/plan/findPlanById/'+param,
    method: 'get',
    param
  })
}

export function approvePass(param) {
  return request({
    url: '/plan/approvePass/'+param,
    method: 'get',
    param
  })
}

export function approveNopass(param) {
  return request({
    url: '/plan/approveNopass/'+param,
    method: 'get',
    param
  })
}